﻿//-----------------------------------------------------------------------
// <copyright file="ISecurityContext.cs" company="CodePlex">
//     Copyright (c) Doug Holland, CodePlex. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace CodePlex.Diagnostics.Silverlight
{
    using System;

    using System.Security.Principal;

    /// <summary>
    /// Encapsulates a Silverlight application.
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface ISecurityContext<T> where T : IPrincipal
    {
        #region T CurrentPrincipal

        /// <summary>
        /// Gets the current principal of the Silverlight application.
        /// </summary>
        /// <value>The current principal of the Silverlight application.</value>
        T CurrentPrincipal
        {
            get;
        }

        #endregion
    }
}